#include "beep.h"

extern int beepWar;

void beep_init(void)
{
    beepWar = BEEP_OFF;
    pinMode(BEEP, OUTPUT);
    digitalWrite(BEEP, beepWar);
}

void beep_ctrl(void)
{
    beepWar = !beepWar;
    digitalWrite(BEEP, beepWar);
}

void beep_tips(void)
{
    digitalWrite(BEEP, BEEP_ON);
    delay(50);
    digitalWrite(BEEP, BEEP_OFF);
}
